package org.top10.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.OneToOne;
@Entity               
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
public abstract class CollectEntity {
	private int id;
	private String name;//名称/标题
	private int rank;//排名
	private String imgUrl;//图片链接
	private String linkUrl;
	private CollectRecord collRecord;//关联某次采集
	private int firstHandRank;//前一次采集的排名
	
	private String point;//这个分数是用于某一次收集信息的这个榜的，
	//对其他的相同榜没影响，不过月排名就可以把同一部电影的积分积累
	private String author;
	private String authUrl;
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getAuthUrl() {
		return authUrl;
	}
	public void setAuthUrl(String authUrl) {
		this.authUrl = authUrl;
	}
	@Id
    @GeneratedValue (strategy=GenerationType.TABLE)
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getRank() {
		return rank;
	}
	public void setRank(int rank) {
		this.rank = rank;
	}
	
	public int getFirstHandRank() {
		return firstHandRank;
	}
	public void setFirstHandRank(int firstHandRank) {
		this.firstHandRank = firstHandRank;
	}
	public String getPoint() {
		return point;
	}
	public void setPoint(String point) {
		this.point = point;
	}
	public String getImgUrl() {
		return imgUrl;
	}
	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}
	public String getLinkUrl() {
		return linkUrl;
	}
	public void setLinkUrl(String linkUrl) {
		this.linkUrl = linkUrl;
	}
	@OneToOne
	public CollectRecord getCollRecord() {
		return collRecord;
	}
	public void setCollRecord(CollectRecord collRecord) {
		this.collRecord = collRecord;
	}
	
}
